home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / wtj007.zip / BLOOM.ZIP / SURVDEMO.H < prev    next >
Text File  |  1992-07-24  |  3KB  |  107 lines

  1. // SURVDEMO.H
  2.  
  3. #include <windows.h>
  4. #include "odbutton.h"
  5.  
  6.  
  7. /* Constants used in resources:  */
  8. #include "svdemorc.h"
  9.  
  10.  
  11. #define FAIL 1
  12.  
  13. /* Name of Survey table */
  14.  
  15. #define MAXFIELDSIZE    120
  16.  
  17. extern char szAppName[]; /* Application name */
  18. extern HANDLE hInst; /* Handle to current instance */
  19. extern HWND hDlgSurvey;
  20. extern HWND hDlgStatistics;
  21.  
  22.  
  23. /* Defined in SURVEY.C */
  24. int PASCAL WinMain( HANDLE hInstance,
  25.              HANDLE hPrevInstance, LPSTR lpszCmdLine,
  26.              int nCmdShow );
  27. BOOL FAR PASCAL SurveyDlgProc( HWND hDlg,
  28.                     unsigned iMessage, WORD wParam,
  29.                     LONG lParam );
  30. BOOL FAR PASCAL AboutDlgProc( HWND hDlg,
  31.                      unsigned iMessage, WORD wParam,
  32.                      LONG lParam );
  33. BOOL PaintBitmap (HWND hCtrl,HBITMAP hBM);
  34. void PaintIcon (HWND hDLG, HICON hIcon);
  35.  
  36.  
  37. /* DEFINED IN STATDEMO.C */
  38. BOOL FAR PASCAL StatisticsDlgProc( HWND hDlg,
  39.                      unsigned iMessage, WORD wParam,
  40.                      LONG lParam );
  41. void MakeStats(HWND hDlg);
  42. void PaintStats(HWND hDlg);
  43.  
  44. // Array of stat data
  45.  
  46. typedef  struct
  47.   {
  48.   long itemtot;
  49.   long itemave;
  50.   } STATDATA;
  51.  
  52.  
  53. /* DEFINED IN GRPHDEMO.C */
  54. BOOL FAR PASCAL GraphDlgProc (HWND hDlg,
  55.             WORD message, WORD wParam, LONG lParam);
  56. void PaintGraphDlgCtrl(HWND hCtrl, short dataOffset);
  57.  
  58.  
  59. /*  Color Information Used in All Dialog Functions */
  60.  
  61. #define BLACK  RGB(0, 0, 0)
  62. #define RED    RGB(255,0,0)
  63. #define LIGHTRED    RGB(255,130,126)
  64. #define YELLOW RGB(255,255,0)
  65. #define DARKYELLOW RGB(192,192,0)
  66. #define GREEN  RGB(0, 255, 0)
  67. #define CYAN   RGB(0, 255, 255)
  68. #define YELLOWGREEN   RGB(193,255,125)
  69. #define LIGHTGREEN  RGB(130, 255, 130)
  70. #define DARKGREEN  RGB(0, 125, 0)
  71. #define DARKDARKGREEN  RGB(0, 64, 0)
  72. #define BLUE  RGB(0, 0, 255)
  73. #define BLUEGREEN  RGB(0, 125, 255)
  74. #define LIGHTBLUE  RGB(98, 193, 255)
  75. #define BLACK  RGB(0, 0, 0)
  76. #define MAGENTA  RGB(255, 0, 255)
  77. #define LIGHTMAGENTA RGB(255,90,255)
  78. #define DARKMAGENTA  RGB(223, 0, 172)
  79. #define WHITE  RGB(255, 255, 255)
  80. #define DARKGRAY    RGB(128,128,128)
  81.  
  82. /* Brush, Font, and Pen Handles created
  83.                       only once in SurveyDlgProc */
  84.  
  85. extern HBRUSH hBrushRed;
  86. extern HBRUSH hBrushLightRed;
  87. extern HBRUSH hBrushYellow;
  88. extern HBRUSH hBrushDarkYellow;
  89. extern HBRUSH hBrushGreen;
  90. extern HBRUSH hBrushCyan;
  91. extern HBRUSH hBrushBlue;
  92. extern HBRUSH hBrushLightBlue;
  93. extern HBRUSH hBrushMagenta;
  94. extern HBRUSH hBrushLightMagenta;
  95. extern HBRUSH hBrushDarkGreen;
  96.  
  97. extern HFONT   hFontTimes;
  98. extern HFONT   hFontTimesSmall;
  99. extern HFONT   hFontTimesVerySmall;
  100. extern HFONT   hFontTimesButton;
  101.  
  102. extern HPEN    hDarkGrayPen;
  103.  
  104.  
  105.  
  106.  
  107.